package graduate.wangyaqi.QuestionDetail;

import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

public interface QuestionDetailRepository  extends CrudRepository<QuestionDetail,Long> {
    @Override
    Optional<QuestionDetail> findById(Long aLong);

    Iterable<QuestionDetail> findQuestionDetailByQuestionIdOrderByAnswerTimeDesc(Long questionId);
}
